package com.qianxx.component.activity.recycleview.pager;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.qianxx.component.R;
import com.qianxx.viewlibrary.recyclerview.refreshview.adapter.SuperAdapter;
import com.qianxx.viewlibrary.recyclerview.refreshview.adapter.internal.SuperViewHolder;

import java.util.ArrayList;
import java.util.List;

public class Image2Adapter extends SuperAdapter<Integer> {

    public Image2Adapter(Context context) {
        super(context, new ArrayList<Integer>(), R.layout.item_image4);
    }

    @Override
    public void onBind(SuperViewHolder holder, int viewType, int position, Integer item) {
        Glide.with(getContext()).load(item).into((ImageView) holder.getView(R.id.iv));
    }

}
